a=input()
a=a.split()
if (('zero' not in a) + ('one' not in a) + ('two' not in a) + ('three' not in a) + ('four' not in a) + ('five' not in a) + ('six' not in a) + ('seven' not in a)\
   + ('eight' not in a) + ('nine' not in a))!=3:
    print('wrong input')
else:
    for i in a:
        if i=='zero':
            b=0
        elif i=='one':
            b=1
        elif i=='two':
            b=2
        elif i=='three':
            b=3
        elif i=='four':
            b=4
        elif i=='five':
            b=5
        elif i=='six':
            b=6
        elif i=='seven':
            b=7
        elif i=='eight':
            b=8
        elif i=='nine':
            b=9
        print(b,end='')
